package com.example.Repository;

import com.example.domain.Blog;
import com.example.domain.property.Type;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;

@Repository
public interface TypeRepository extends JpaRepository<Type,Long>{

    @Modifying
    @Transactional
    @Query(value = "delete from Type where id=?1")
    int DeteleTypeId(Long id);
}
